﻿
@{
    ViewBag.Title = Resources.WebStringsWeb.WebTitle;
    Layout = "~/Views/Shared/_LayoutMobile.cshtml";
}

@section css {
    <link href="~/Assets/css/previewImage.css" rel="stylesheet" />
    <link href="~/Assets/css/mui.picker.min.css" rel="stylesheet" />
    <script src="~/Assets/js/mui.picker.js"></script>
    <script src="~/Assets/js/mui.picker.min.js"></script>
    <script src="~/Assets/js/mui.dtpicker.js"></script>
    <style>
        .mui-bar ~ .mui-content .mui-scroll-wrapper {
            top: 44px;
            height: auto;
        }

        .btn_addPic {
            display: block;
            position: relative;
            width: 53px;
            height: 53px;
            overflow: hidden;
            cursor: pointer;
            text-align: center;
        }

        .filePrew {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 53px;
            height: 53px;
            opacity: 0;
        }
    </style>
}
<header class="mui-bar mui-bar-nav">
    <button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left" style="color:white;">
        <span class="mui-icon mui-icon-left-nav" style=""></span>
    </button>
    <h1 class="mui-title" style="color:white;">添加应急疏散</h1>
</header>

<div class="mui-content">
    <div class="mui-content-padded" style="margin: 5px;" ng-cloak ng-controller="EmergencyController" ng-init="
          PlaceId='@(Request.QueryString["PlaceId"].IsEmpty() ? "0" : Request.QueryString["PlaceId"])';
         AddModel={};
         AddModel.PlaceId = PlaceId;
     ImageCount=[0];
     FileId ='';
     InitImgeUpload2();
     ">
        <h5 class="mui-content-padded">&nbsp;&nbsp;备注：</h5>
        <div class="mui-input-row" style="margin: 10px 5px;">
            <textarea id="textarea" rows="5" placeholder="此处输入备注" ng-model="AddModel.Remark"></textarea>
        </div>
        <p>&nbsp;&nbsp;添加照片</p>
        <div class="row image-list" style="margin-top:20px;margin-bottom:50px;">
            <div style="float:left;margin-left:10px;" ng-repeat="x in ImageCount" id="imagebox_{{x}}">
            </div>
        </div>
        <div class="mui-button-row" style="margin-top:150px;">
            <button type="button" ng-click="MAddEvacuateForm(AddModel);" ng-disabled="Loading" class="mui-btn mui-btn-primary mui-btn-block">保 &nbsp;&nbsp;存</button>
        </div>
    </div>
</div>
<div style="height:80px;">

</div>

@section js{

    <script src="~/Assets/js/libs/upload.js"></script>
    <script src="~/Assets/js/mui.zoom.js"></script>
    <script src="~/Assets/js/mui.previewimage.js"></script>
    <script src="~/Assets/js/pg/Emergency.js?v=@DateTime.Now.ToString("yyyyMMddHH")"></script>
    <script>

        mui.showLoading("正在加载..", "div");

        setTimeout(function () {
            mui.hideLoading();
            mui.previewImage();
        }, 2000);
    </script>
}
